﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucAccountInfo.ascx.cs"
    Inherits="UserControl_ucAccountInfo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<script type="text/javascript">
    function UpdateParentsLogin(UserName) {
        if (window.parent.SetLoggedIn != null)
            window.parent.SetLoggedIn();
        if (window.parent.tb_remove != null)
            window.parent.tb_remove();
        if (window.parent.Checkout != null)
            window.parent.Checkout();
        if (window.parent.SetHello != null) {
            window.parent.SetHello(UserName);
        }
    }
</script>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
        <td class="clsRegisterTitle">
            Account Information
        </td>
    </tr>
    <tr>
        <td style="padding: 5px 7px 5px 7px; text-align: left;">
            <table border="0" cellpadding="0" cellspacing="3">
                <tr>
                    <td align="right" style="width: 200px">
                        User Account:
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtuser" runat="server" CssClass="txtRegisterReq" Enabled="false"
                            Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 200px">
                        EMail:
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtEmail" runat="server" CssClass="txtRegisterReq" Enabled="false"
                            Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        First Name:
                    </td>
                    <td>
                        <asp:TextBox ID="txtFName" runat="server" ValidationGroup="validRegister" CssClass="txtRegisterReq"
                            Width="200px"></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="requireFirstName" ControlToValidate="txtFName"
                            runat="server" ErrorMessage="*" Display="Dynamic" ValidationGroup="grpRegister"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 200px;">
                        Last Name:
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtSName" runat="server" ValidationGroup="validRegister" CssClass="txtRegisterReq"
                            Width="200px"></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="requireLastName" ControlToValidate="txtSName"
                            runat="server" ErrorMessage="*" Display="Dynamic" ValidationGroup="grpRegister"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 200px;">
                        Phone Number:
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtPhone" runat="server" ValidationGroup="validRegister" CssClass="txtRegisterReq"
                            Width="200px"></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtPhone"
                            runat="server" ErrorMessage="*" Display="Dynamic" ValidationGroup="grpRegister"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 200px;">
                        Country:
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="drcountry" Style="width: 201px;" runat="server" CssClass="txtRegisterReq">
                        </asp:DropDownList>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="drcountry"
                            runat="server" ErrorMessage="*" Display="Dynamic" ValidationGroup="grpRegister"></asp:RequiredFieldValidator>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnSubmit" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td align="center" style="padding-top: 10px;">
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>
                    <asp:Button ID="btnSubmit" runat="server" SkinID="btnSubmit" Text="Save" ValidationGroup="grpRegister"
                        OnClick="btnSubmit_Click" />
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnSubmit" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td align="center" style="padding-top: 5px;">
            <asp:UpdateProgress ID="updatePrgReg" runat="server">
                <ProgressTemplate>
                    <asp:Image ID="imgLoading" runat="server" ToolTip="Loading..." ImageUrl="~/en/images/loadingAnimation.gif"
                        Style="border-width: 0px;" />
                </ProgressTemplate>
            </asp:UpdateProgress>
        </td>
    </tr>
</table>
